package com.bjsxt.mapper;

import com.bjsxt.pojo.Host;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface HostMapper {

    //查询
    List<Host> selectHost(Host host);

    //修改权重
    @Update("update t_host set strong=#{param1} where hid=#{param2}")
    Integer updateHost(Integer strong,Integer hid);

    //添加
    Integer insetHost(Host host);

    //修改
    @Update("update t_host set status=#{param2} where hid=#{param1}")
    Integer updateHostStatus(Integer hid,String status);

}
